package com.xm.security.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author yousj
 * @since 2021/8/27
 */
@Data
@ConfigurationProperties(prefix = "security.cors")
public class WebCorsProperties {
    private String addMapping = "/**";
    private Boolean allowCredentials = true;
    private Long maxAge = 3600L;
    private String[] allowedOrigins = {"http://localhost:8080", "*"};
    private String[] allowedMethods = {"GET", "POST", "PUT", "DELETE", "OPTIONS"};
}